import type { IloginState } from './vuex/login/types'
import { ISystemState } from './vuex/main/system/types'
import { IDashBoardState } from './vuex/main/analysis/type'

export interface IRootState {
  name: string
  age: number
  entireDepartment: any[]
  entireRole: any[]
  entireMenu: any[]
}

// 为了处理在组件中获取store无法知道具体类型, store中每新增一个module需要在这里增加类型
export interface IRootWithModule {
  loginModule: IloginState
  systemModule: ISystemState
  dashboardModule: IDashBoardState
}

export type IStoreType = IRootState & IRootWithModule
